package com.kxq.zhuoyue.controller;


import com.kxq.zhuoyue.po.CodeGroup;
import com.kxq.zhuoyue.po.EmpDrainage;
import com.kxq.zhuoyue.service.EmpDrainageService;
import com.kxq.zhuoyue.service.impl.EmpDrainageServiceImpl;
import com.kxq.zhuoyue.util.result.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author lyz
 * @since 2023年09月01日
 */
@RestController
@RequestMapping("/empDrainage")
public class EmpDrainageController {

    @Autowired
    private EmpDrainageServiceImpl empDrainageService;

    @PostMapping("/selectEmpName/{codeName}")
    public AjaxResult findName(@PathVariable String codeName){
        List<EmpDrainage> list = empDrainageService.findName(codeName);
        return AjaxResult.success("查询成功",list);
    }



}

